import request from '@/utils/request'
export default {

    //添加小节
    addVideo(video) {
        return request({
            url: '/api/edu/video/addVideo',
            method: 'post',
            data: video
          })
    },
    
    //删除小节同时删除视频
    deleteVideo(id) {
        return request({
            url: `/api/edu/video/${id}`,
            method: 'delete'
          })
    },
    //获取上传凭证
    createUploadVideo(courseId,name){
      return request({
        url: `/api/vod/createUploadVideo/`,
        method: 'post',
        data:{courseId,name}
      })
    },
}